package com.example.mannortycoon.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.Date;
import java.util.List;

@Data
@TableName("seed")
public class SeedEntity {

    @TableId
    private Long seedId;

    private String seedName;

    private Double seedPrice;

    private String seedImgUrl;

    //成熟时间（单位：秒）
    private Integer matureTime;

    private Date createTime;

    private Date updateTime;

    private Long cropId;

    //是否售卖
    private Integer isSold;

    //最小收获
    private Integer minHarvest;

    //最大收获
    private Integer maxHarvest;

    @TableLogic
    private Integer isDeleted;

    @TableField(exist = false)
    private List<SeedUnlockConditionsEntity> unlockConditions;
}
